package com.isdepci.project.carbon.domain;

import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * CCER项目对象 project_list
 *
 * @author isdepci
 * @date 2023-05-15
 */
public class CcerProject extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 年度yyyy */
    private String iyear;

    /** 所属项目 */
    private Long projectId;

    /** 项目名称 */
    private String projectName;

    /** 方法学编号 */
    private String methodologyNumber;

    /** 当前状态(1-项目识别/2-项目审定/3-项目备案与登记/4-减排量备案/5-上市交易/6-最终注销) */
    private Integer currentState;

    /** 项目计入期(固定计入期/可更新的计入期) */
    private Integer projectDate;

    /** 备案减排量(t) */
    private BigDecimal recordedEmission;

    /** 累计出售量(t) */
    private BigDecimal cumulativeSales;

    /** 累计剩余量(t) */
    private BigDecimal cumulativeSurplus;

    /** 累计收益(元) */
    private BigDecimal cumulativeReturns;

    public void setId(Long id){
        this.id = id;
    }

    public Long getId(){
        return id;
    }
    public void setProjectName(String projectName){
        this.projectName = projectName;
    }

    public String getProjectName(){
        return projectName;
    }
    public void setMethodologyNumber(String methodologyNumber){
        this.methodologyNumber = methodologyNumber;
    }

    public String getMethodologyNumber(){
        return methodologyNumber;
    }
    public void setCurrentState(Integer currentState){
        this.currentState = currentState;
    }

    public Integer getCurrentState(){
        return currentState;
    }
    public void setProjectDate(Integer projectDate){
        this.projectDate = projectDate;
    }

    public Integer getProjectDate(){
        return projectDate;
    }
    public void setRecordedEmission(BigDecimal recordedEmission){
        this.recordedEmission = recordedEmission;
    }

    public BigDecimal getRecordedEmission(){
        return recordedEmission;
    }
    public void setCumulativeSales(BigDecimal cumulativeSales){
        this.cumulativeSales = cumulativeSales;
    }

    public BigDecimal getCumulativeSales(){
        return cumulativeSales;
    }
    public void setCumulativeSurplus(BigDecimal cumulativeSurplus){
        this.cumulativeSurplus = cumulativeSurplus;
    }

    public BigDecimal getCumulativeSurplus(){
        return cumulativeSurplus;
    }
    public void setCumulativeReturns(BigDecimal cumulativeReturns){
        this.cumulativeReturns = cumulativeReturns;
    }

    public BigDecimal getCumulativeReturns(){
        return cumulativeReturns;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getIyear() {
        return iyear;
    }

    public void setIyear(String iyear) {
        this.iyear = iyear;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
                .append("iyear", getIyear())
            .append("projectName", getProjectName())
            .append("projectId", getProjectId())
            .append("methodologyNumber", getMethodologyNumber())
            .append("currentState", getCurrentState())
            .append("projectDate", getProjectDate())
            .append("recordedEmission", getRecordedEmission())
            .append("cumulativeSales", getCumulativeSales())
            .append("cumulativeSurplus", getCumulativeSurplus())
            .append("cumulativeReturns", getCumulativeReturns())
            .toString();
    }
}
